-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Email Link Sign In Documentation + Backstack fixes #1503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…InFragment and added documentation for email link sign in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments.
.ACTION_CODE_SETTINGS); | ||
|
||
if (savedInstanceState == null || !savedInstanceState.getBoolean(EMAIL_SENT)) { | ||
if (!mEmailSent && (savedInstanceState == null || !savedInstanceState.getBoolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your crazy formatter is at it again!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢 fixed!
|
||
|
||
private void switchFragment(Fragment fragment, String tag, boolean withTransition) { | ||
private void switchFragment(Fragment fragment, String tag, boolean withTransition, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make an overload without the new param that defaults it to false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have one already that sets both booleans to false.
|
||
@Override | ||
public void onClickResendEmail(String email) { | ||
if (getSupportFragmentManager().getBackStackEntryCount() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just add a comment here detailing the assumption you're making? As I understand it, you're assuming that if there's any back stack at all here it's due to the trouble sending flow and you want to pop from the stack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Done. 😃
#1501